package com.yq.ylmall.wechat;

import com.yq.ylmall.config.MinioConfig;
import com.yq.ylmall.service.CacheService;
import com.yq.ylmall.service.MinioService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Project: yourlife
 * @Name: ServiceWechatPaymentApplication
 * @Author: Jack_Li
 * @Date: 2024/6/13 15:34
 */

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.yq.ylmall.client.*")
@ComponentScan(value = "com.yq.ylmall",
        excludeFilters = @ComponentScan.Filter(
        type = FilterType.ASSIGNABLE_TYPE,
        classes = {
                MinioService.class,
                MinioConfig.class,
                CacheService.class
        }))
@EnableScheduling
public class ServiceWechatPaymentApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceWechatPaymentApplication.class, args);
    }
}
